<!--<?php
require_once template('header'); 
print <<<EOT
<!-- 购物车开始 -->
		<div id="location"><p><b>$navigation</b></p></div>
		<div class="member_xg">
			<div class="title8"><span>查看购物清单</span></div>
			<fieldset>
				<legend>$lang[cart_text]</legend>
				<form action="cart.php" method="post" name="cart">
                <input type="hidden" name="action" value="change">
                <input type="hidden" name="ps_caid" value="0">
                <input type="hidden" name="ps_ctid" value="$ps_ctid">
				<table cellpadding="0" cellspacing="1" class="ca4">
					<tr>	  	  	  	 	  	
						<th width="200">$lang[buy_name]</th>
						<th>属 性</th>  
						<th>$lang[buy_price]</th>
						<th>$lang[integral]</th>
						<th>$lang[kg]</th>
						<th width="120">$lang[buy_nums] </th>
						<th width="120">$lang[buy_del]</th>
					</tr>
<!--
EOT;
foreach ($cart_goods as $val){
print <<<EOT
-->
					<tr>
						<td class="td1"><a href="$val[url]" title="$val[title]">$val[subject]<span style="cursor:pointer;"><img src="$val[photo]" /></span></a></td>
						<td>&nbsp;$val[goods_att]</td>
						<td>$val[price]</td>
						<td>point $val[point]</td>
						<td>$val[kg] kg</td>
					  	<td><input name="cart_list_num[]" maxlength="5" value="$val[cart_num]" onkeypress="if (event.keycode < 45 || event.keycode > 57) event.returnvalue = false;" type="text"  class="c_inp" />
					    <input onmouseover="this.style.cursor='hand'" onclick="javascript:cart_change(cart,'$val[uid]')" type="button" value="$lang[edit_announce]" class="c_inp2" /></td>
						<td><input onclick="location.href='$val[del_url]'" type="button" value="$lang[uesr_del]" class="c_inp2" /> 
					  <input  onclick="javascript:cart_wish(cart,'$val[uid]')" type="button" value="$lang[uesr_save]" class="c_inp2" /><input type="hidden" name="cart_uid[]" value="$val[uid]"></td>
					</tr>
<!--
EOT;
} print <<<EOT
-->					
					<tr class="ca5">
						<td class="td1">$lang[buy_account]：</td>
						<td>&nbsp;</td>
						<td>$sum_cart[price]</td>
						<td>&nbsp;$rowset->total_point</td>
						<td>$rowset->total_kg kg</td>
					  	<td>&nbsp;$sum_cart[nums]</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				</form>	
				<p class="ca5"><span><strong>$lang[buy_goods]:$total_price</strong></span><strong>$lang[goods_nums]: $sum_cart[nums] </strong></p>			
				<p class="ca6"><img onmouseover="this.style.cursor='hand'" onclick="history.back(-1)" src="$imgpath/orderNext1.gif" /><a href="$cart_buy_url"><img src="$imgpath/orderNext2.gif" /></a></p>
			</fieldset>
			
			<fieldset>
				<legend>$lang[pr_shop] <a name="favorite"></a></legend>
				<table cellpadding="0" cellspacing="1" class="ca4">
                  	<tr>
                    	<th>$lang[buy_img]</th>
                    	<th>$lang[buy_name]</th>
                    	<th>属 性</th>
                    	<th>$lang[largess_price]</th>
                    	<th>$lang[buy]</th>
                  	</tr>
<!--
EOT;
foreach (activity(3) as $val){
print <<<EOT
-->
                  	<tr>
                    	<td><a href="$val[url]" title="$val[title]"><img src="$val[photo]" width="50" height="50" /></a></td>
                    	<td>$val[goods_name]</td>
                    	<td>&nbsp;$val[goods_att]</td>
                    	<td>$val[buy_price]</td>
                    	<td><input onclick="window.location.href='$val[buy_url]'" type="button" value="$lang[buy]" class="c_inp2" /></td>
                  	</tr>
<!--
EOT;
} print <<<EOT
-->
                </table>
			</fieldset>
			
			<fieldset>
				<legend>$lang[favorite]<a name="favorite"></a></legend>
				<form action="cart.php" method="post" name="wish">
                <input type="hidden" name="action" value="change">
                <input type="hidden" name="ps_caid" value="0">
                <input type="hidden" name="ps_ctid" value="$ps_ctid">
				<table cellpadding="0" cellspacing="1" class="ca4">
                  	<tr> 	  	 	  	
						<th width="200">$lang[buy_name]</th>
						<th>属 性</th>  
						<th>$lang[buy_price]</th>
						<th>$lang[integral]</th>
						<th>$lang[kg]</th>
						<th width="120">$lang[buy_nums] </th>
						<th width="120">$lang[buy_del]</th>
                  	</tr>
<!--
EOT;
foreach ($wish_goods as $val){
print <<<EOT
-->
                  	<tr>
						<td class="td1"><a href="$val[url]" title="$val[title]">$val[subject]<span style="cursor:pointer;"><img src="$val[photo]" /></span></a></td>
						<td>&nbsp;$val[goods_att]</td>
						<td>$val[price]</td>
						<td>point $val[point]</td>
                    	<td>$val[kg] kg</td>
                    	<td><input name="cart_list_num[]" maxlength="5" value="$val[cart_num]" onkeypress="if (event.keycode < 45 || event.keycode > 57) event.returnvalue = false;" type="text"  class="c_inp" />
                      <input onmouseover="this.style.cursor='hand'" onclick="javascript:cart_change(wish,'$val[uid]')" type="button" value="$lang[edit_announce]" class="c_inp2" /></td>
                    	<td><input onclick="window.location.href='$val[del_url]'" type="button" value="$lang[uesr_del]" class="c_inp2" />
                     	<input onclick="javascript:wish_cart(wish,'$val[uid]')" type="button" value="$lang[distill]" class="c_inp2" />
                    	<input type="hidden" name="cart_uid[]" value="$val[uid]"></td>
                  	</tr>
<!--
EOT;
} print <<<EOT
-->
                </table>
                </form>
			</fieldset>
		</div>
		<div class="title_b"><p></p></div>
<!-- 购物车结束 -->
<!--
EOT;
?>-->